home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 48
/
PC Gamer IT CD 48 1-2.iso
/
age2
/
AoE2demo.exe
/
1033
/
CABFILE
/
MSGAME.CAB
/
Data
/
gamedata.drs
/
Unnamed File 000019.bina
< prev
next >
Wrap
Text File
|
1999-10-01
|
15KB
|
712 lines
(defrule
(true)
=>
(set-strategic-number sn-wood-gatherer-percentage 10)
(set-strategic-number sn-food-gatherer-percentage 90)
(set-strategic-number sn-gold-gatherer-percentage 0)
(set-strategic-number sn-stone-gatherer-percentage 0)
(disable-self)
)
;DARK AGE
(defrule
(current-age == dark-age)
(wood-amount < 100)
(or
(building-type-count-total mill == 0)
(building-type-count-total lumber-camp == 0)
)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal upgrade-conflict NOTICE)
(current-age == dark-age)
(food-amount < 500)
=>
(set-goal resource-needed FOOD)
)
(defrule
(current-age == dark-age)
(gold-amount < 50)
(or
(goal rush-control RUSHING)
(players-military-population any-enemy >= five-percent-pop)
)
=>
(set-goal resource-needed GOLD)
)
;***********************************************
;***********************************************
(defrule
(goal resource-needed NO)
(current-age == dark-age)
(civilian-population < 10)
(not (strategic-number sn-wood-gatherer-percentage == 10) )
=>
(set-strategic-number sn-wood-gatherer-percentage 10)
(set-strategic-number sn-food-gatherer-percentage 90)
(set-strategic-number sn-gold-gatherer-percentage 0)
(set-strategic-number sn-stone-gatherer-percentage 0)
)
(defrule
(goal resource-needed WOOD)
(current-age == dark-age)
(civilian-population < 10)
(not (strategic-number sn-wood-gatherer-percentage == 20) )
=>
(set-strategic-number sn-wood-gatherer-percentage 20)
(set-strategic-number sn-food-gatherer-percentage 80)
(set-strategic-number sn-gold-gatherer-percentage 0)
(set-strategic-number sn-stone-gatherer-percentage 0)
)
(defrule
(goal resource-needed NO)
(current-age == dark-age)
(civilian-population >= 10)
(not (strategic-number sn-wood-gatherer-percentage == 30) )
=>
(set-strategic-number sn-wood-gatherer-percentage 30)
(set-strategic-number sn-food-gatherer-percentage 70)
)
(defrule
(goal resource-needed WOOD)
(current-age == dark-age)
(civilian-population >= 10)
(not (strategic-number sn-wood-gatherer-percentage == 40) )
=>
(set-strategic-number sn-wood-gatherer-percentage 40)
(set-strategic-number sn-food-gatherer-percentage 60)
)
(defrule
(goal resource-needed FOOD)
(current-age == dark-age)
(civilian-population >= 10)
(not (strategic-number sn-wood-gatherer-percentage == 20) )
=>
(set-strategic-number sn-wood-gatherer-percentage 20)
(set-strategic-number sn-food-gatherer-percentage 80)
)
(defrule
(goal resource-needed GOLD)
(current-age == dark-age)
=>
(set-strategic-number sn-wood-gatherer-percentage 25)
(set-strategic-number sn-food-gatherer-percentage 65)
(set-strategic-number sn-gold-gatherer-percentage 10)
(disable-self)
)
;***********************************************
;***********************************************
;FEUDAL AGE
(defrule
(current-age == feudal-age)
=>
(set-goal resource-needed NO)
)
(defrule
(goal resource-supp FOOD-ONLY)
(current-age == feudal-age)
(food-amount < 150)
=>
(set-goal resource-needed FOOD)
)
(defrule
(goal resource-supp WOOD-FOOD)
(current-age == feudal-age)
(wood-amount < 75)
(food-amount > 100)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal resource-supp WOOD-FOOD)
(current-age == feudal-age)
(wood-amount > 75)
(food-amount < 100)
=>
(set-goal resource-needed FOOD)
)
(defrule
(goal resource-supp FOOD-GOLD)
(current-age == feudal-age)
(food-amount > 100)
(gold-amount < 50)
=>
(set-goal resource-needed GOLD)
)
(defrule
(goal resource-supp FOOD-GOLD)
(current-age == feudal-age)
(food-amount < 100)
(gold-amount > 50)
=>
(set-goal resource-needed FOOD)
)
(defrule
(current-age == feudal-age)
(wood-amount < 175)
(or
(building-type-count-total market == 0)
(building-type-count-total blacksmith == 0)
)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal sea-owner YES)
(current-age == feudal-age)
(warboat-count <= five-percent-pop)
(or
(wood-amount < 125)
(and
(unit-type-count-total transport-ship > 0)
(wood-amount < 90)
)
)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal upgrade-conflict NOTICE)
(current-age == feudal-age)
(food-amount < 800)
(gold-amount > 200)
=>
(set-goal resource-needed FOOD)
)
(defrule
(goal upgrade-conflict NOTICE)
(current-age == feudal-age)
(food-amount > 800)
(gold-amount < 200)
=>
(set-goal resource-needed GOLD)
)
(defrule
(goal wall-build YES)
(current-age == feudal-age)
(stone-amount < 30)
=>
(set-goal resource-needed STONE)
)
(defrule
(goal sea-owner YES)
(current-age == feudal-age)
(warboat-count < ten-percent-pop)
(wood-amount < 125)
(gold-amount > 30)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal sea-owner YES)
(current-age == feudal-age)
(warboat-count < ten-percent-pop)
(wood-amount > 125)
(gold-amount < 30)
=>
(set-goal resource-needed GOLD)
)
;***********************************************
;***********************************************
(defrule
(goal resource-needed NO)
(current-age == feudal-age)
=>
(set-strategic-number sn-wood-gatherer-percentage 40)
(set-strategic-number sn-food-gatherer-percentage 45)
(set-strategic-number sn-gold-gatherer-percentage 10)
(set-strategic-number sn-stone-gatherer-percentage 5)
)
(defrule
(goal resource-needed WOOD)
(current-age == feudal-age)
=>
(set-strategic-number sn-wood-gatherer-percentage 50)
(set-strategic-number sn-food-gatherer-percentage 35)
(set-strategic-number sn-gold-gatherer-percentage 10)
(set-strategic-number sn-stone-gatherer-percentage 5)
)
(defrule
(goal resource-needed FOOD)
(current-age == feudal-age)
=>
(set-strategic-number sn-wood-gatherer-percentage 30)
(set-strategic-number sn-food-gatherer-percentage 55)
(set-strategic-number sn-gold-gatherer-percentage 10)
(set-strategic-number sn-stone-gatherer-percentage 5)
)
(defrule
(goal resource-needed GOLD)
(current-age == feudal-age)
=>
(set-strategic-number sn-wood-gatherer-percentage 35)
(set-strategic-number sn-food-gatherer-percentage 40)
(set-strategic-number sn-gold-gatherer-percentage 20)
(set-strategic-number sn-stone-gatherer-percentage 5)
)
(defrule
(goal resource-needed STONE)
(current-age == feudal-age)
=>
(set-strategic-number sn-wood-gatherer-percentage 35)
(set-strategic-number sn-food-gatherer-percentage 40)
(set-strategic-number sn-gold-gatherer-percentage 10)
(set-strategic-number sn-stone-gatherer-percentage 15)
)
;***********************************************
;***********************************************
;CASTLE AGE
(defrule
(current-age == castle-age)
=>
(set-goal resource-needed NO)
)
(defrule
(goal resource-supp FOOD-ONLY)
(current-age == castle-age)
(food-amount < 250)
=>
(set-goal resource-needed FOOD)
)
(defrule
(current-age == castle-age)
(goal resource-supp GOLD-ONLY)
(gold-amount < 475)
=>
(set-goal resource-needed GOLD)
)
(defrule
(goal resource-supp WOOD-FOOD)
(current-age == castle-age)
(wood-amount < 150)
(food-amount > 200)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal resource-supp WOOD-FOOD)
(current-age == castle-age)
(wood-amount > 150)
(food-amount < 200)
=>
(set-goal resource-needed FOOD)
)
(defrule
(goal resource-supp WOOD-GOLD)
(current-age == castle-age)
(wood-amount > 300)
(gold-amount < 175)
=>
(set-goal resource-needed GOLD)
)
(defrule
(goal resource-supp WOOD-GOLD)
(current-age == castle-age)
(wood-amount < 300)
(gold-amount > 175)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal resource-supp WOOD-STONE)
(current-age == castle-age)
(wood-amount > 200)
(stone-amount < 300)
=>
(set-goal resource-needed STONE)
)
(defrule
(goal resource-supp WOOD-STONE)
(current-age == castle-age)
(wood-amount < 200)
(stone-amount > 300)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal resource-supp FOOD-GOLD)
(current-age == castle-age)
(food-amount > 350)
(gold-amount < 200)
=>
(set-goal resource-needed GOLD)
)
(defrule
(goal resource-supp FOOD-GOLD)
(current-age == castle-age)
(food-amount < 350)
(gold-amount > 200)
=>
(set-goal resource-needed FOOD)
)
(defrule
(goal resource-supp FOOD-STONE)
(current-age == castle-age)
(food-amount > 200)
(stone-amount < 250)
=>
(set-goal resource-needed STONE)
)
(defrule
(goal resource-supp FOOD-STONE)
(current-age == castle-age)
(food-amount < 200)
(stone-amount > 250)
=>
(set-goal resource-needed FOOD)
)
(defrule
(current-age == castle-age)
(wood-amount < 200)
(or
(building-type-count-total university == 0)
(building-type-count-total siege-workshop == 0)
)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal upgrade-conflict NOTICE)
(current-age == castle-age)
(food-amount < 1000)
(gold-amount > 800)
=>
(set-goal resource-needed FOOD)
)
(defrule
(goal upgrade-conflict NOTICE)
(current-age == castle-age)
(food-amount > 1000)
(gold-amount < 800)
=>
(set-goal resource-needed GOLD)
)
(defrule
(current-age == castle-age)
(or
(and
(goal castle-attempt YES)
(stone-amount < 650)
)
(and
(goal wall-build YES)
(stone-amount < 30)
)
)
=>
(set-goal resource-needed STONE)
)
(defrule
(goal sea-owner YES)
(current-age == castle-age)
(warboat-count < fifteen-percent-pop)
(wood-amount < 125)
(gold-amount > 50)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal sea-owner YES)
(current-age == castle-age)
(warboat-count < fifteen-percent-pop)
(wood-amount > 125)
(gold-amount < 50)
=>
(set-goal resource-needed GOLD)
)
;***********************************************
;IMPERIAL AGE
(defrule
(current-age == imperial-age)
=>
(set-goal resource-needed NO)
)
(defrule
(goal resource-supp FOOD-ONLY)
(current-age == imperial-age)
(food-amount < 250)
=>
(set-goal resource-needed FOOD)
)
(defrule
(goal resource-supp GOLD-ONLY)
(current-age == imperial-age)
(gold-amount < 475)
=>
(set-goal resource-needed GOLD)
)
(defrule
(goal resource-supp WOOD-FOOD)
(goal upgrade-conflict 33)
(current-age == imperial-age)
(wood-amount < 1100)
(food-amount > 1000)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal resource-supp WOOD-FOOD)
(goal upgrade-conflict 33)
(current-age == imperial-age)
(wood-amount > 1100)
(food-amount < 1000)
=>
(set-goal resource-needed FOOD)
)
(defrule
(goal resource-supp WOOD-FOOD)
(current-age == imperial-age)
(wood-amount < 600)
(food-amount > 500)
(not (goal upgrade-conflict 33) )
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal resource-supp WOOD-FOOD)
(current-age == imperial-age)
(wood-amount > 600)
(food-amount < 500)
(not (goal upgrade-conflict 33) )
=>
(set-goal resource-needed FOOD)
)
(defrule
(goal resource-supp WOOD-GOLD)
(current-age == imperial-age)
(wood-amount > 525)
(gold-amount < 500)
=>
(set-goal resource-needed GOLD)
)
(defrule
(goal resource-supp WOOD-GOLD)
(current-age == imperial-age)
(wood-amount < 525)
(gold-amount > 500)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal resource-supp WOOD-STONE)
(current-age == imperial-age)
(wood-amount > 400)
(stone-amount < 400)
=>
(set-goal resource-needed STONE)
)
(defrule
(goal resource-supp WOOD-STONE)
(current-age == imperial-age)
(wood-amount < 400)
(stone-amount > 400)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal resource-supp FOOD-GOLD)
(current-age == imperial-age)
(food-amount > 1600)
(gold-amount < 1200)
=>
(set-goal resource-needed GOLD)
)
(defrule
(goal resource-supp FOOD-GOLD)
(current-age == imperial-age)
(food-amount < 1600)
(gold-amount > 1200)
=>
(set-goal resource-needed FOOD)
)
(defrule
(goal resource-supp FOOD-STONE)
(current-age == imperial-age)
(food-amount > 500)
(stone-amount < 350)
=>
(set-goal resource-needed STONE)
)
(defrule
(goal resource-supp FOOD-STONE)
(current-age == imperial-age)
(food-amount < 500)
(stone-amount > 350)
=>
(set-goal resource-needed FOOD)
)
(defrule
(goal castle-attempt YES)
(current-age == imperial-age)
(stone-amount < 650)
=>
(set-goal resource-needed STONE)
)
(defrule
(goal sea-owner YES)
(current-age == imperial-age)
(warboat-count < twenty-percent-pop)
(wood-amount < 200)
(gold-amount > 150)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal sea-owner YES)
(current-age == imperial-age)
(warboat-count < twenty-percent-pop)
(wood-amount > 200)
(gold-amount < 150)
=>
(set-goal resource-needed GOLD)
)
;***********************************************
;WONDERING
(defrule
(goal wonder-attempt POSSIBLE)
(wood-amount < 1000)
(gold-amount > 1000)
(stone-amount > 1000)
=>
(set-goal resource-needed WOOD)
)
(defrule
(goal wonder-attempt POSSIBLE)
(wood-amount > 1000)
(gold-amount < 1000)
(stone-amount > 1000)
=>
(set-goal resource-needed GOLD)
)
(defrule
(goal wonder-attempt POSSIBLE)
(wood-amount > 1000)
(gold-amount > 1000)
(stone-amount < 1000)
=>
(set-goal resource-needed STONE)
)
;***********************************************
;***********************************************
(defrule
(goal resource-needed NO)
(current-age >= castle-age)
=>
(set-strategic-number sn-wood-gatherer-percentage 40)
(set-strategic-number sn-food-gatherer-percentage 40)
(set-strategic-number sn-gold-gatherer-percentage 15)
(set-strategic-number sn-stone-gatherer-percentage 5)
)
;extra wood
(defrule
(goal resource-needed WOOD)
(current-age >= castle-age)
=>
(set-strategic-number sn-wood-gatherer-percentage 50)
(set-strategic-number sn-food-gatherer-percentage 30)
(set-strategic-number sn-gold-gatherer-percentage 15)
(set-strategic-number sn-stone-gatherer-percentage 5)
)
;extra food
(defrule
(goal resource-needed FOOD)
(current-age >= castle-age)
=>
(set-strategic-number sn-wood-gatherer-percentage 30)
(set-strategic-number sn-food-gatherer-percentage 50)
(set-strategic-number sn-gold-gatherer-percentage 15)
(set-strategic-number sn-stone-gatherer-percentage 5)
)
;extra gold
(defrule
(goal resource-needed GOLD)
(current-age >= castle-age)
=>
(set-strategic-number sn-wood-gatherer-percentage 35)
(set-strategic-number sn-food-gatherer-percentage 35)
(set-strategic-number sn-gold-gatherer-percentage 25)
(set-strategic-number sn-stone-gatherer-percentage 5)
)
;extra stone
(defrule
(goal resource-needed STONE)
(current-age >= castle-age)
=>
(set-strategic-number sn-wood-gatherer-percentage 35)
(set-strategic-number sn-food-gatherer-percentage 35)
(set-strategic-number sn-gold-gatherer-percentage 15)
(set-strategic-number sn-stone-gatherer-percentage 15)
)